<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        window.onload = function (){
            var name = localStorage.getItem("name");
            document.getElementById("infoSpan").innerHTML = name;
        }
    </script>
</head>
<body>
    信息：<span id="infoSpan"></span>
</body>
</html>